//
//  CounterView.m
//  iMine
//
//  Created by gaoxiang on 09-3-15.
//  Copyright 2009 __MyCompanyName__. All rights reserved.
//

#import "CounterView.h"


@implementation CounterView

@synthesize viewImage;

- (id)initWithFrame:(NSRect)frame {
    if (![super initWithFrame:frame])
        return nil;
	
    return self;
}

- (void)drawRect:(NSRect)rect {
	if (viewImage)
	{
		NSRect imageRect;
		imageRect.origin = NSZeroPoint;
		imageRect.size = [viewImage size];
		[viewImage drawInRect:imageRect fromRect:imageRect operation:NSCompositeSourceOver fraction:1];
	}
}

@end
